<script>
  export default{
    name:'StudentComponent',
    data(){
      return {
        name: "张三",
        age: 23
      }
    },
  }
</script>

<template>
  <div>
    <h2>学生姓名: {{name}}</h2>
    <h2>学生性别: {{age}}</h2>
  </div>
</template>

<style scoped>

</style>